package cn.jdx.tools;

import java.util.regex.Matcher;
import java.util.regex.Pattern;

public class 正则提取中文 {
    private String getDescription(String content){
        String regex="([\u4e00-\u9fa5]+)";
        Matcher matcher = Pattern.compile(regex).matcher(content);
        if(matcher.find()){
            return  matcher.group(0);
        }
        return null;
    }
    public static void main(String[] args) {
        String regex="([\u4e00-\u9fa5]+)";
        String str="132更新至456";
        Matcher matcher = Pattern.compile(regex).matcher(str);
        if(matcher.find()){
            System.out.println(matcher.group(0));
        }
    }
}
